<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">  
    <title>Document</title>
</head>
<style>
    .one{
        width: 500px;
        height: 500px;
        background-color: #bfa;
        margin: 50px auto;
    }
    .two{
        width: 100px;
        height: 100px;
        margin: 200px;
        background-color: red;
    }
</style>
<body>
   
</body>
<script>
    let list = [{name:1,id:1},{name:0,id:2},{name:3},{name:4},{name:5}]
    // let m = list.slice(2,5)
    let n = list.splice(0,5)
    console.log(n);
    console.log(list);
    let path = 'https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html'
    window.location.href = path;
</script>
</html>